/**
 * Created by Administrator on 2025/5/7.
 * */
#ifndef CFAR_ERA
#define CFAR_ERA

#include "TaskModule.h"
#include "../GlobalParameters.h"
#include <mutex>
#include <thread>
#include "../include/zy_net.h"

extern "C" BaseObject *createCFAR();
extern "C" void destroyCFAR(BaseObject *p);

class CFAR : public TaskModule {
public:
CFAR();

~CFAR();

void onCompute(buffer_table_t *input, buffer_table_t *output) override;


private:
    int step;
    int prevStep;
    IcrDb icrDb;
    std::mutex mutex_;
    std::thread serverThread;
};

#endif //TASK1_ERA
